package sww
{
    import flash.display.Sprite;
    import flash.events.*;
    import flash.net.FileReference;
    import flash.net.FileReferenceList;
 
    public class FileReferenceList extends Sprite 
    {
        public static var LIST_COMPLETE:String = "listComplete";
        
        /**
    	 * コンストラクタ
    	 */
    	public function FileReferenceList() 
    	{
    		initiateFileUpload();
    	}
		
		/**
    	 * 
    	 */
    	private function initiateFileUpload():void 
    	{
    		var fileRef:CustomFileRefList = new CustomFileRefList();
        	
        	fileRef.addEventListener
        		(FileRefList.LIST_COMPLETE, listCompleteHandler);
        	fileRef.browse(fileRef.getTypes());
    	}
		
		/**
    	 * 
    	 */
    	private function listCompleteHandler(event:Event):void 
    	{
        	    trace("listCompleteHandler");
    	}
    }
}